
package me.common
{
	import com.zero.util.InstanceUtil;
	
	import flash.display.Sprite;
	
	import me.module.toolMain.MainModel;
	import me.module.toolMain.MainView;
	
	
	/**
	 * @author 缺硒
	 */
	public class TMain extends Sprite
	{
		private var _mainView:MainView;
		
		// 构造函数
		public function TMain()
		{
			drawBackground();
			initModels();
			initViews();
		}
		
		private function drawBackground():void
		{
			this.graphics.beginFill(0x000000);
			this.graphics.drawRect(0,0,800,600);
			this.graphics.endFill();
		}
		
		private function initModels():void
		{
			MainModel.getInstance();
		}
		
		private function initViews():void
		{
			_mainView = InstanceUtil.create(new MainView(), this);
		}
		//
	}
}